import java.util.Arrays;
public class SortRectangles {
  public static void main(String[] args) {
    ComparableSquare[] rectangles = {
      new ComparableSquare(3.4),
      new ComparableSquare(66.9),
      new ComparableSquare(7),
      new ComparableSquare(3)};
    java.util.Arrays.sort(rectangles);int[] a = {9, 8, 7, 2, 3, 4, 1, 0, 6, 5};
    Arrays.sort(a, 0, 3);
    for(int i = 0; i < a.length; i ++) {
      System.out.print(a[i] + " ");
    }
    for (Square Square: rectangles) {
      System.out.print(Square + " ");
      System.out.println();
    }
  }
}
